package ink.ykb.demo.permission.entity;
import java.io.Serializable;
import java.util.Date;

import org.beetl.sql.core.annotatoin.Table;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
/* 
* 角色权限关联表
* gen by beetlsql 2019-09-20
*/
@Table(name="test.role_rule")
public class RoleRule  implements Serializable {
	
	private static final long serialVersionUID = 1L;
	// alias
	public static final String ALIAS_id = "id";
	public static final String ALIAS_role_id = "role_id";
	public static final String ALIAS_rule_id = "rule_id";
	public static final String ALIAS_create_time = "create_time";
	
	/*
	主键
	*/@JsonSerialize(using=ToStringSerializer.class)
	private Long id ;
	/*
	角色主键
	*/
	private Long roleId ;
	/*
	权限主键
	*/
	private Long ruleId ;
	/*
	创建时间
	*/
	private Date createTime ;
	
	public RoleRule() {
	}
	
	/**
	* 主键
	*@return 
	*/
	public Long getId(){
		return  id;
	}
	/**
	* 主键
	*@param  id
	*/
	public void setId(Long id ){
		this.id = id;
	}
	
	/**
	* 角色主键
	*@return 
	*/
	public Long getRoleId(){
		return  roleId;
	}
	/**
	* 角色主键
	*@param  roleId
	*/
	public void setRoleId(Long roleId ){
		this.roleId = roleId;
	}
	
	/**
	* 权限主键
	*@return 
	*/
	public Long getRuleId(){
		return  ruleId;
	}
	/**
	* 权限主键
	*@param  ruleId
	*/
	public void setRuleId(Long ruleId ){
		this.ruleId = ruleId;
	}
	
	/**
	* 创建时间
	*@return 
	*/
	public Date getCreateTime(){
		return  createTime;
	}
	/**
	* 创建时间
	*@param  createTime
	*/
	public void setCreateTime(Date createTime ){
		this.createTime = createTime;
	}
	

}
